package com.hmall.search.service;


import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.ItemDOC;
import com.hmall.search.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface SearchService {
    //自动补全
    List<String> suggestion(String key);

    //聚合
    Map<String, List<String>> filters(RequestParams params);

    PageDTO<ItemDOC> list(RequestParams params);

    //新增
    void save(Long id);

    //删除
    void delete(Long id);
}
